package me.leiusual.sharing.util.extension

import com.google.gson.Gson
import com.google.gson.GsonBuilder
import me.leiusual.sharing.util.tool.GsonKotlinAdapterFactory

/**
 * Gson
 */
val gson: Gson by lazy {
  GsonBuilder()
      .serializeNulls()
      .setDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
      .registerTypeAdapterFactory(GsonKotlinAdapterFactory())
      .create()
}